package com.fowo.api.sys.entity.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 提供 SysDataActivity 的操作行为定义
 */
public enum SysDataActivityAction {
    View("view", "查看"),
    Add("add", "新增"),
    Modified("modified", "修改"),
    Del("del", "删除"),
    Download("download", "下载"),
    Import("import", "导入"),
    Export("export", "导出"),
    Comment("comment", "评论"),
    Follow("follow", "关注"),
    Unfollow("unfollow", "取消关注"),
    Other("other", "其它");

    SysDataActivityAction(String value, String label) {
        this.value = value;
        this.label = label;
    }

    @EnumValue
    @JsonValue
    private final String value;

    private final String label;

    public String getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }
}
